package com.shujia.flink.tf

import org.apache.flink.streaming.api.scala._

object Demo7Union {
  def main(args: Array[String]): Unit = {
    val env: StreamExecutionEnvironment = StreamExecutionEnvironment.getExecutionEnvironment

    val ds1: DataStream[Int] = env.fromCollection(List(1, 2, 3, 4, 5, 6, 7))
    val ds2: DataStream[Int] = env.fromCollection(List(6, 7, 8, 9, 10))

    val unionDS: DataStream[Int] = ds1.union(ds2)

    unionDS.print()

    env.execute()

  }

}
